home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / Action.java < prev    next >
Text File  |  1998-08-01  |  1KB  |  65 lines

  1. package com.symantec.itools.swing.actions;
  2.  
  3. import java.io.Serializable;
  4. import com.sun.java.swing.*;
  5.  
  6. public abstract class Action
  7.     extends AbstractAction
  8.     implements java.io.Serializable
  9. {
  10.     //
  11.     // Properties
  12.     //
  13.     
  14.     // Name
  15.     
  16.     public String getActionName()
  17.     {
  18.         return (String)getValue(NAME);
  19.     }
  20.     
  21.     public void setActionName(String newName)
  22.     {
  23.         putValue(NAME,newName);
  24.     }
  25.     
  26.     // Small Icon
  27.     
  28.     public Icon getSmallIcon()
  29.     {
  30.         return (Icon)getValue(SMALL_ICON);
  31.     }
  32.     
  33.     public void setSmallIcon(Icon newSmallIcon)
  34.     {
  35.         putValue(SMALL_ICON,newSmallIcon);
  36.     }
  37.     
  38.     //???RKM??? These do not seem to be used for anything
  39.     /*
  40.     // Short Description
  41.     
  42.     public String getShortDescription()
  43.     {
  44.         return (String)getValue(SHORT_DESCRIPTION);
  45.     }
  46.     
  47.     public void setShortDescription(String newShortDescription)
  48.     {
  49.         putValue(SHORT_DESCRIPTION,newShortDescription);
  50.     }
  51.     
  52.     // Long Description
  53.     
  54.     public String getLongDescription()
  55.     {
  56.         return (String)getValue(LONG_DESCRIPTION);
  57.     }
  58.     
  59.     public void setLongDescription(String newLongDescription)
  60.     {
  61.         putValue(LONG_DESCRIPTION,newLongDescription);
  62.     }
  63.     */
  64. }
  65.